home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d6
/
icp51.arc
/
UNPACK.EXE
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-03-16
|
2KB
|
84 lines
@echo off
cls
if "%1==" goto hlpinst
if "%2==" goto hlpinst
:loop1
cls
echo Insert Program Disk in drive %1
echo Files will be copied to %2\ICP
echo .
pause
if exist unpack.exe goto ok1
cls
echo Wrong disk or missing files...
echo INSTALLATION ABORTED!
goto end
:ok1
cls
echo Copying the ICP System files to Drive %2\ICP
%2
cd\
md\ICP
cd\ICP
if exist inven.dbf goto ok2
%1unpack
goto ok3
:ok3
cls
echo ICP System files successfully copied.
echo .
echo WARNING! The ICP will not run unless certain system parameters are
echo properly established. Consult the "readme.doc" file for information
echo concerning this process.
echo .
echo *********************************************************************
echo TO START THE ICP PROGRAM, BE SURE YOU ARE IN THE DIRECTORY IN WHICH
echo THE ICP FILES WERE INSTALLED AND TYPE "START".
echo *********************************************************************
echo .
echo You may print document files by typing the command "print <file.ext>".
echo For example, to print the readme.doc file, type "print readme.doc "
echo and hit the ENTER key.
echo .
echo You may view document files by entering the command "view <file.ext>".
echo For example, to view the readme.doc file, type "view readme.doc" and
echo hit the ENTER key.
echo .
echo Thank you!
echo God Bless!
goto end
:hlpinst
cls
echo The correct syntax is "install <source: target:>"
echo INSTALLATION ABORTED!
goto end
:ok2
rename inven.dbf old.dbf
rename inven.dbt old.dbt
md sample
copy old.* %2\icp\sample\old.*
del *.bat
del *.dbf
del *.dbt
del *.doc
del *.exe
del *.frm
del *.ntx
del config.sys
%1unpack
copy %2\icp\sample\old.* %2\icp\old.*
del %2\icp\sample\old.*
copy inven.dbf %2\icp\sample
transfer
del old.*
del transfer.exe
goto ok3
:end